package com.jxtc.enterprise.hr.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Schema(description = "为选中的员工进行充值的所需信息")
@Getter
@Setter
@ToString
public class RechargeDTO {
    @Schema(description = "员工 ID 列表", example = "[\"c752804d0cd410267f404dd3f0457a56\"]")
    @NotEmpty(message = "员工 ID 列表不能为空")
    private List<String> employeeIds;

    @Schema(description = "充值金额，单位：元", example = "100")
    @Min(value = 0, message = "充值金额不能小于 0")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal amount;
}